package org.kth.dks.test_bed;

/**
 * <p>Title: DKS</p>
 * <p>Description: DKS Middleware</p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: KTH-IMIT/SICS</p>
 * @author Ali Ghodsi (aligh@kth.se)
 * @version 1.0
 */

import org.kth.dks.JDHT;

public class JDHTClient {

  /**
   * @param args contains a reference to an existing node in a DHT
   */
  public static void main(String[] args) {
    if (args.length!=1) System.exit(0);
    try {

      JDHT myDHT = new JDHT(5550, args[0]);

      String helloString = (String) myDHT.get("myKey");
      System.out.println(helloString);

      myDHT.close();

    }
    catch (Exception e) {
      e.printStackTrace();
    }

  }

}
